//
//  UserManager.h
//  EveryDay
//
//  Created by FengDongsheng on 15/6/25.
//  Copyright (c) 2015年 FengDongsheng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserModel.h"
#import "ApplicationModel.h"
@interface UserManager : NSObject

@property (nonatomic, strong) UserModel            *userInfo;

@property (nonatomic, strong) ApplicationModel     *appRunInfo;

+ (UserManager*)sharedUserManager;

//判断用户是否登录，没登陆会弹出登录按钮
- (BOOL)checkLogin:(UIViewController *)viewController;

//是否已经登录
- (BOOL)isLogin;

//弹出登录页面
- (void)showLoginPage:(UIViewController *)viewController;

//退出登录
- (void)logout;

//登录
- (void)updateUserInfo:(NSDictionary *)uInfo;

//更新用户信息
- (void)updateUser;

@end
